FROM centos

RUN mkdir /worker

WORKDIR /worker

COPY Python-3.5.0.tgz /worker
COPY requirement.txt /worker

RUN yum update -y \
  &&  yum install -y epel-release make gcc yum-utils mysql-devel

RUN yum-builddep python -y

RUN tar xf /worker/Python-3.5.0.tgz && cd Python-3.5.0 && ./configure && make && make install

RUN pip3 install --upgrade pip 
RUN pip3 install -r /worker/requirement.txt
